<?php

class View {

    function __construct() {
        //echo 'this is the view';
    }

    public function render($name, $noInclude = false)
    {
        if ($noInclude == true) {
            require 'apps/frontend/views/' . $name . '.php';    
        }
        else {
            require 'apps/frontend/views/header.php';
            require 'apps/frontend/views/' . $name . '.php';
            require 'apps/frontend/views/footer.php';    
        }
    }

}